package com.universe.titan.module.crudDemo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.universe.titan.common.entity.crudDemo.Demo;
import com.universe.titan.module.crudDemo.vo.DemoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author : linmaobo
 * @create 2022/12/6
 */
@Mapper
public interface DemoMapper  extends BaseMapper<Demo> {
    List<Demo> selectByName(String name);

    IPage<Demo> selectPageByDemoVo(Page page, @Param("demoVo")DemoVo demoVo);
}
